<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="f" %>

<div class="panel-body">
    <f:form id="loginFormId" cssClass="form-horizontal" action="${pageContext.request.contextPath}/news/edit/${newsEdit.id}" role="form">
        <fieldset>
            <legend>Редактор</legend>
            <!-- Text input-->
            <div class="form-group">
                <label class="col-md-2 control-label" for="textinput">Заголовок новости</label>

                <div class="col-md-8">
                    <input id="textinput" name="textinput" placeholder="Заголовок новости" class="form-control input-md" type="text">
                </div>
            </div>

            <!-- Textarea -->
            <div class="form-group">
                <label class="col-md-2 control-label" for="textFullNewsId">Текст новости</label>

                <div class="col-md-9">
                    <textarea class="form-control" id="textFullNewsId" name="textarea" rows="20"></textarea>
                </div>
            </div>

            <!-- Button (Double) -->
            <div class="form-group">
                <div class="col-md-3 col-md-offset-8">
                    <button id="button1id" name="button1id" class="btn btn-success">Сохранить</button>
                    <button id="button2id" name="button2id" class="btn btn-primary">Отмена</button>
                </div>
            </div>
        </fieldset>
    </f:form>
</div>
<script type="text/javascript" src="<c:url value="/resources/js/ckeditor/ckeditor.js" />"></script>
<script>
    CKEDITOR.replace('textFullNewsId',{
            height: '400px'
    });
</script>